<?php

/**
 * @author Rizky Tahara Shita
 * @website http://tahara.web.id
 * @email rizky.tahara@gmail.com
 * @copyright b'IT Cyber Solution
 */

class M_layout extends BZ_Model
{
/**
 * @section Layout: Modaldialog
 */

	/**
	 * @function modaldialog_generate
	 * @description generate the modaldialog layout
	 */
	public function modaldialog_generate($prm_data)
	{
		if (is_array($prm_data))
		{
			$return_value = '<div id="modaldialog_content"><div id="modaldialog_title_bar"><span>'.$prm_data['FORM_MODAL']['TITLE'].'</span><a class="shade_link" title="shade..."></a><a class="jqmClose" title="close..."></a></div><div id="shade_content"><center><div id="process_modaldialog" style="display: none"><div id="message_modaldialog"><img src="'.$this->web_data['BISKITZ']['SETTINGS']['BISKITZ_DOMAIN'].'themes/'.$this->web_data['BISKITZ']['SETTINGS']['BISKITZ_THEME_ADMIN'].'/images/ajax-loader.gif" border="0" align="top" />&nbsp;Please wait &hellip;</div></div><div id="error_message_modaldialog" class="error_field" style="display: none"><span class="error_close" title="close">x</span><span class="error_content"></span></div> '.$prm_data['FORM_MODAL']['OPEN'].$prm_data['FORM_MODAL']['CONTENT'];

			/**
			 * @description need to show the notes at below ?
			 */
			if ($prm_data['NOTES_MODAL']['USE'] == 'TRUE')
			{
				$return_value .= '<div class="note_modaldialog">'.$prm_data['NOTES_MODAL']['MESSAGE']['SHORTCUTS'].'<br />'.$prm_data['NOTES_MODAL']['MESSAGE']['ADDITIONAL'].'</div>';
			}

			$return_value .= '</form></center></div></div><script>$(function(){ js_common_addition(); });</script>';


			return $return_value;
		}
	}



}

/** End of file m_layout.php */
/** Location: ./biskitz_mpc/biskitz/models/admin/m_layout.php */
